<?php header('Content-type: text/css'); ?>
<?php
	$absolute_path = __FILE__;
	$path_to_file = explode( 'wp-content', $absolute_path );
	$path_to_wp = $path_to_file[0];
	require_once( $path_to_wp.'/wp-load.php' );

	$toptoolbar_wrapper_background =  get_option('toptoolbar_wrapper_background'); 
    if ( $toptoolbar_wrapper_background == '' ) $toptoolbar_wrapper_background = '24241F';
	
	$template_url = get_template_directory_uri();
	
	/* A9BE22 */
	$color = get_option('theme_color');
	if ( isset($_GET['themecolor']) )
		$color = $_GET['themecolor'];
	
	$page = 'other_page';
	if ( isset($_GET['page']) )
		$page = $_GET['page'];

	$background_add = ''; 
	
	if ( $page == 'other_page' || get_option('slider_active') != 'yes' )
		$background_add = '_post';
	
	if ( get_option('slider_active') == 'yes' && get_option('slider_selection') == 'carousel' && get_option('carousel_border') == 'on' )
		$background_add = '_post';
	
	$wrapper_width = 960;
	$wrapper_margin_top = 0;
	$wrapper_margin_bottom = 0;
	
	//$color = 'A9BE22';
	
	if ( get_option('layout_style', 'full_width') == 'boxed')
	{
		if ( get_option('wrapper_width', '1020') <= 960 ) 
			$wrapper_width = 960;
		else
			$wrapper_width = get_option('wrapper_width');
			
		$wrapper_margin_top = get_option('wrapper_margin_top', '0');
		$wrapper_margin_bottom = get_option('wrapper_margin_bottom', '0');
		
		if ( $wrapper_width == '' )         $wrapper_width = 960;
		if ( $wrapper_margin_top == '' )    $wrapper_margin_top = 0;
		if ( $wrapper_margin_bottom == '' ) $wrapper_margin_bottom = 0;
		
		////////////// CONTENT SCROLLER ( in case boxed ) ////////////////
		echo '#content_scroller { width: 960px !important; }';
	}

	// logo positioning
	$logo_margin_left = get_option( 'logo_horizontal_alignment', '0' );
	$logo_margin_top = get_option( 'logo_vertical_alignment', '0' );
	
	if ( $logo_margin_left == '' ) $logo_margin_left = 0;
	if ( $logo_margin_top  == '' ) $logo_margin_top  = 0;

	// logo & menu color
	$logo_color = get_option( 'header_logo_color', '8F1034' );
	$menu_color = get_option( 'header_menu_color', '666666' );
			
	if ( $logo_color == '' ) $logo_color = $theme_color;
	if ( $menu_color == '' ) $menu_color = $theme_color;
		
	echo '
	#header_logo {
		margin-left: '.$logo_margin_left.'px;
		margin-top: '.$logo_margin_top.'px;
	}';
		
	echo '
	#master_header .logo,
	#master_header a {
		color: #'.$logo_color.';	
	}';
	
	echo '
	#header_menu ul li a:link strong,
	#header_menu ul li a:visited strong {
		color: #'.$menu_color.';	
	}';
	
	
?>

#theme_box_pattern {
	<?php
	
		$boxed_background_pattern = get_option( 'theme_boxed_pattern' , 'no_pattern' );
		if ( $boxed_background_pattern == '' ) $boxed_background_pattern = 'no_pattern';
		
		$boxed_background_pattern_opacity = get_option( 'theme_boxed_pattern_opacity' , '0.5' );
		if ( $boxed_background_pattern_opacity == '' ) $boxed_background_pattern_opacity = '0.5';
		
		$background_boxed_url = '';
		if ( $boxed_background_pattern != 'no_pattern' ) $background_boxed_url = get_template_directory_uri().'/patterns_box/'.$boxed_background_pattern.'.png';
		
		if ( get_option('theme_boxed_custom_pattern') != '' ) $background_boxed_url = get_option('theme_boxed_custom_pattern');
	
		if ( $boxed_background_pattern != '' && $boxed_background_pattern != 'no_pattern' )
		{
			echo 'background-image: url("'.$background_boxed_url.'");';
		}
	?>
    background-repeat: repeat;
	position: fixed;
    width: 100%;
    height: 100%;
    bottom: 0px;
    z-index: -1;
    opacity: <?php echo $boxed_background_pattern_opacity; ?>;
}

<?php
	$theme_background_image_opacity = get_option( 'theme_background_image_opacity' , '1' );
	if ( $theme_background_image_opacity == '' ) $theme_background_image_opacity = '1';
?>

#theme_background {
	position: fixed;
    background-image: url("<?php echo get_option( 'theme_background_image' ); ?>");
    background-position: <?php echo get_option( 'theme_background_position', 'center top' ); ?>;
    background-repeat: <?php echo get_option( 'theme_background_repeat', 'no-repeat' ); ?>;
    width: 100%;
    height: 100%;
    bottom: 0px;
    z-index: -2;
    opacity: <?php echo $theme_background_image_opacity; ?>;
}


<?php
	$theme_boxed_background_color = get_option( 'theme_boxed_background_color' );
	if ( $theme_boxed_background_color == '' ) $theme_boxed_background_color = 'EEEEEE';
?>
#theme_box_background {
	background-color: #<?php echo $theme_boxed_background_color; ?>;
	position: fixed;
    width: 100%;
    height: 100%;
    bottom: 0px;
    z-index: -3;
}

#wrapper {
	background-image: url("../patterns/<?php echo get_option('website_pattern', '01'); ?>.png");
    background-color: #<?php echo get_option('theme_background_color', 'F5F5F5'); ?>;
	background-repeat: repeat;
	position: relative;
    <?php
	if ( get_option('layout_style', 'full_width') == 'full_width' )
		echo 'width: 100%';
	else
		echo 'width:'.$wrapper_width.'px;';
	?>
    margin: 0 auto;
    margin-top: <?php echo $wrapper_margin_top; ?>px;
    margin-bottom: <?php echo $wrapper_margin_bottom; ?>px;
}

#second_wrapper {
	background-image: url("../images/fashion_black_top_bg_trans<?php echo $background_add; ?>.png");
	background-repeat: repeat-x;
    background-position: center top;
}



/*        START COLORS       */

h1, h2, h3, h4, h5, h6,

a:hover,
a:active,
table thead th,

#content_scroller_title,
#welcome_text,
#welcome_text_no_button,
#welcome_text_first,
#welcome_text_first_no_button,
#carousel_welcome_text,
.nivo_wide_container .nivo-caption span,
#slider_content .nivo-caption .caption_title,
#widget_wrapper .xoxo .widget-title,

.content_slider .bx_content .read_more a:link,
.content_slider .bx_content .read_more a:visited,

.twitter .follow_on_twitter:hover,

#single .post_title,
#sidebar_content h3,
#sidebar_content ul ul li a:hover,
#sidebar_content ul ul li a:active,
.page_title,
.portfolio .entry_content .portfolio_title a:link,
.portfolio .entry_content .portfolio_title a:visited,
.wp-pagenavi .current,
.wp-pagenavi a:hover,
.wp-pagenavi a:active,
.accordion_caption .caption_title,
.blog_style_1 .blog_content .meta .day,
.read_more a:link,
.read_more a:visited,
.tabs .ui-tabs-nav .ui-tabs-selected a:link,
.tabs .ui-tabs-nav .ui-tabs-active a:link,
.tabs .ui-tabs-nav .ui-tabs-selected a:hover,
.tabs .ui-tabs-nav .ui-tabs-active a:hover,
#sub_footer_left a:hover,
#sub_footer_left a:active,
.toggles .toggle_header:hover .header_content,
#comments .comment_author,
#comments .comment_author a,
#author_info #author_description #author_name,
#author_info #author_description a:link#author_link,
#author_info #author_description a:visited#author_link,
.widget_rss > ul > li a:link.rsswidget,
.widget_rss > ul > li a:visited.rsswidget {
	color: #<?php echo $color; ?>;
}


.content_highlight,
#content_scroller_prev.buttons:active,
#content_scroller_next.buttons:active,
#header_menu ul ul li a:hover,
#header_menu ul ul li a:active {
	background-color: #<?php echo $color; ?>;
}

.widget_tag_cloud a:hover,
.widget_tag_cloud a:active {
	background-color: #<?php echo $color.' !important'; ?>;
}


.tabs .ui-tabs-nav li a:hover,
.tabs .ui-tabs-nav li a:active {
	border: 1px solid #<?php echo $color.' !important'; ?>;
    background-color: #<?php echo $color.' !important'; ?>;
}


.portfolio_read_more a:hover,
.portfolio_read_more a:active,
.widget_container .recent_posts .post_content .post_title a:hover,
.widget_container .recent_posts .post_content .post_title a:active,
.testimonials a:hover,
.testimonials a:active,
.recent_comments_widget .comment_content .author a:hover,
.recent_comments_widget .comment_content .author a:active,
#sidebar .recent_comments_widget .comment_content .author a:hover,
#sidebar .recent_comments_widget .comment_content .author a:active,
.recent_comments_widget .comment_content .commented_item a:hover,
.recent_comments_widget .comment_content .commented_item a:active {
	color: #<?php echo $color.' !important'; ?>;
}


::-moz-selection {
	background: #<?php echo $color; ?>;
	color: #FFF;
}

::selection {
	background: #<?php echo $color; ?>;
	color: #FFF;
}

/*       END  Colors       */


<?php 

if ( get_option('font_active', 'font-face') == 'font-face' )
{
	$font_face = get_option('font_face_selection');
	
	if ( $font_face == '' )
		$font_face = 'AllerLightRegular';
	
	switch ( $font_face )
	{
		case 'AllerLightRegular':
			?>
			@font-face {
				font-family: 'AllerLightRegular';
				src: url('<?php echo $template_url.'/fonts/';?>aller_lt-webfont.eot');
				src: url('<?php echo $template_url.'/fonts/';?>aller_lt-webfont.eot?#iefix') format('embedded-opentype'),
					 url('<?php echo $template_url.'/fonts/';?>aller_lt-webfont.woff') format('woff'),
					 url('<?php echo $template_url.'/fonts/';?>aller_lt-webfont.ttf') format('truetype'),
					 url('<?php echo $template_url.'/fonts/';?>aller_lt-webfont.svg#AllerLightRegular') format('svg');
				font-weight: normal;
				font-style: normal;
			}
			<?php
		break;
		
		case 'Bebas_Neue':
			?>
			@font-face {
				font-family: 'Bebas_Neue';
				src: url('<?php echo $template_url.'/fonts/';?>BebasNeue-webfont.eot');
				src: url('<?php echo $template_url.'/fonts/';?>BebasNeue-webfont.eot?#iefix') format('embedded-opentype'),
					 url('<?php echo $template_url.'/fonts/';?>BebasNeue-webfont.woff') format('woff'),
					 url('<?php echo $template_url.'/fonts/';?>BebasNeue-webfont.ttf') format('truetype'),
					 url('<?php echo $template_url.'/fonts/';?>BebasNeue-webfont.svg#Bebas_Neue') format('svg');
			}
			<?php
		break;
		
		case 'Centabel_Book':
			?>
			@font-face {
				font-family: 'Centabel_Book';
				src: url('<?php echo $template_url.'/fonts/';?>centabel-webfont.eot');
				src: url('<?php echo $template_url.'/fonts/';?>centabel-webfont.eot?#iefix') format('embedded-opentype'),
					 url('<?php echo $template_url.'/fonts/';?>centabel-webfont.woff') format('woff'),
					 url('<?php echo $template_url.'/fonts/';?>centabel-webfont.ttf') format('truetype'),
					 url('<?php echo $template_url.'/fonts/';?>centabel-webfont.svg#Centabel_Book') format('svg');
			}
			<?php
		break;
		
		case 'Garogier_unhinted':
			?>
			@font-face {
				font-family: 'Garogier_unhinted';
				src: url('<?php echo $template_url.'/fonts/';?>Garogier_unhinted-webfont.eot');
				src: url('<?php echo $template_url.'/fonts/';?>Garogier_unhinted-webfont.eot?#iefix') format('embedded-opentype'),
					 url('<?php echo $template_url.'/fonts/';?>Garogier_unhinted-webfont.woff') format('woff'),
					 url('<?php echo $template_url.'/fonts/';?>Garogier_unhinted-webfont.ttf') format('truetype'),
					 url('<?php echo $template_url.'/fonts/';?>Garogier_unhinted-webfont.svg#Garogier_unhinted') format('svg');
			}
			<?php
		break;
		
		case 'Hattori_Hanzo':
			?>
			@font-face {
				font-family: 'Hattori_Hanzo';
				src: url('<?php echo $template_url.'/fonts/';?>Hattori_Hanzo-webfont.eot');
				src: url('<?php echo $template_url.'/fonts/';?>Hattori_Hanzo-webfont.eot?#iefix') format('embedded-opentype'),
					 url('<?php echo $template_url.'/fonts/';?>Hattori_Hanzo-webfont.woff') format('woff'),
					 url('<?php echo $template_url.'/fonts/';?>Hattori_Hanzo-webfont.ttf') format('truetype'),
					 url('<?php echo $template_url.'/fonts/';?>Hattori_Hanzo-webfont.svg#Hattori_Hanzo') format('svg');
			}
			<?php
		break;
		
		case 'MountainsofChristmas':
			?>
			@font-face {
				font-family: 'MountainsofChristmas';
				src: url('<?php echo $template_url.'/fonts/';?>MountainsofChristmas-webfont.eot');
				src: url('<?php echo $template_url.'/fonts/';?>MountainsofChristmas-webfont.eot?#iefix') format('embedded-opentype'),
					 url('<?php echo $template_url.'/fonts/';?>MountainsofChristmas-webfont.woff') format('woff'),
					 url('<?php echo $template_url.'/fonts/';?>MountainsofChristmas-webfont.ttf') format('truetype'),
					 url('<?php echo $template_url.'/fonts/';?>MountainsofChristmas-webfont.svg#MountainsofChristmas') format('svg');
			}
			<?php
		break;
		
		case 'NobileRegular':
			?>
			@font-face {
				font-family: 'NobileRegular';
				src: url('<?php echo $template_url.'/fonts/';?>nobile-webfont.eot');
				src: url('<?php echo $template_url.'/fonts/';?>nobile-webfont.eot?#iefix') format('embedded-opentype'),
					 url('<?php echo $template_url.'/fonts/';?>nobile-webfont.woff') format('woff'),
					 url('<?php echo $template_url.'/fonts/';?>nobile-webfont.ttf') format('truetype'),
					 url('<?php echo $template_url.'/fonts/';?>nobile-webfont.svg#NobileRegular') format('svg');
				font-weight: normal;
				font-style: normal;
			}
			<?php
		break;
		
		case 'Ostrich_black':
			?>
			@font-face {
				font-family: 'Ostrich_black';
				src: url('<?php echo $template_url.'/fonts/';?>Ostrich_black-webfont.eot');
				src: url('<?php echo $template_url.'/fonts/';?>Ostrich_black-webfont.eot?#iefix') format('embedded-opentype'),
					 url('<?php echo $template_url.'/fonts/';?>Ostrich_black-webfont.woff') format('woff'),
					 url('<?php echo $template_url.'/fonts/';?>Ostrich_black-webfont.ttf') format('truetype'),
					 url('<?php echo $template_url.'/fonts/';?>Ostrich_black-webfont.svg#Ostrich_black') format('svg');
				font-weight: normal;
				font-style: normal;
			}
			<?php
		break;
		
		case 'PlayfairDisplay_Regular':
			?>
			@font-face {
				font-family: 'PlayfairDisplay_Regular';
				src: url('<?php echo $template_url.'/fonts/';?>PlayfairDisplay-Regular-webfont.eot');
				src: url('<?php echo $template_url.'/fonts/';?>PlayfairDisplay-Regular-webfont.eot?#iefix') format('embedded-opentype'),
					 url('<?php echo $template_url.'/fonts/';?>PlayfairDisplay-Regular-webfont.woff') format('woff'),
					 url('<?php echo $template_url.'/fonts/';?>PlayfairDisplay-Regular-webfont.ttf') format('truetype'),
					 url('<?php echo $template_url.'/fonts/';?>PlayfairDisplay-Regular-webfont.svg#PlayfairDisplay_Regular') format('svg');
				font-weight: normal;
				font-style: normal;
			}
			<?php
		break;
		
		case 'Quicksand_Book':
			?>
			@font-face {
				font-family: 'Quicksand_Book';
				src: url('<?php echo $template_url.'/fonts/';?>Quicksand_Book-webfont.eot');
				src: url('<?php echo $template_url.'/fonts/';?>Quicksand_Book-webfont.eot?#iefix') format('embedded-opentype'),
					 url('<?php echo $template_url.'/fonts/';?>Quicksand_Book-webfont.woff') format('woff'),
					 url('<?php echo $template_url.'/fonts/';?>Quicksand_Book-webfont.ttf') format('truetype'),
					 url('<?php echo $template_url.'/fonts/';?>Quicksand_Book-webfont.svg#Quicksand_Book') format('svg');
				font-weight: normal;
				font-style: normal;
			}
			<?php
		break;
		
		case 'Tenderness':
			?>
			@font-face {
				font-family: 'Tenderness';
				src: url('<?php echo $template_url.'/fonts/';?>Tenderness-webfont.eot');
				src: url('<?php echo $template_url.'/fonts/';?>Tenderness-webfont.eot?#iefix') format('embedded-opentype'),
					 url('<?php echo $template_url.'/fonts/';?>Tenderness-webfont.woff') format('woff'),
					 url('<?php echo $template_url.'/fonts/';?>Tenderness-webfont.ttf') format('truetype'),
					 url('<?php echo $template_url.'/fonts/';?>Tenderness-webfont.svg#Tenderness') format('svg');
				font-weight: normal;
				font-style: normal;
			}
			<?php
		break;
		
		
		
		// NEW FONTS
		
				case 'AftaSansThinRegular':
			?>
			@font-face {
				font-family: 'AftaSansThinRegular';
				src: url('<?php echo $template_url.'/fonts/';?>AftaSansThin-Regular-webfont.eot');
				src: url('<?php echo $template_url.'/fonts/';?>AftaSansThin-Regular-webfont?#iefix') format('embedded-opentype'),
					 url('<?php echo $template_url.'/fonts/';?>AftaSansThin-Regular-webfont.woff') format('woff'),
					 url('<?php echo $template_url.'/fonts/';?>AftaSansThin-Regular-webfont.ttf') format('truetype'),
					 url('<?php echo $template_url.'/fonts/';?>AftaSansThin-Regular-webfont.svg#AftaSansThinRegular') format('svg');
				font-weight: normal;
				font-style: normal;
			}
			<?php
		break;


		case 'AsapBoldItalic':
			?>
			@font-face {
				font-family: 'AsapBoldItalic';
				src: url('<?php echo $template_url.'/fonts/';?>Asap-BoldItalic-webfont.eot');
				src: url('<?php echo $template_url.'/fonts/';?>Asap-BoldItalic-webfont.eot?#iefix') format('embedded-opentype'),
					 url('<?php echo $template_url.'/fonts/';?>Asap-BoldItalic-webfont.woff') format('woff'),
					 url('<?php echo $template_url.'/fonts/';?>Asap-BoldItalic-webfont.ttf') format('truetype'),
					 url('<?php echo $template_url.'/fonts/';?>Asap-BoldItalic-webfont.svg#AsapBoldItalic') format('svg');
				font-weight: normal;
				font-style: normal;
			}
			<?php
		break;


		case 'AsapBold':
			?>
			@font-face {
				font-family: 'AsapBold';
				src: url('<?php echo $template_url.'/fonts/';?>Asap-Bold-webfont.eot');
				src: url('<?php echo $template_url.'/fonts/';?>Asap-Bold-webfont.eot?#iefix') format('embedded-opentype'),
					 url('<?php echo $template_url.'/fonts/';?>Asap-Bold-webfont.woff') format('woff'),
					 url('<?php echo $template_url.'/fonts/';?>Asap-Bold-webfont.ttf') format('truetype'),
					 url('<?php echo $template_url.'/fonts/';?>Asap-Bold-webfont.svg#AsapBold') format('svg');
				font-weight: normal;
				font-style: normal;
			}
			<?php
		break;


		case 'AsapItalic':
			?>
			@font-face {
				font-family: 'AsapItalic';
				src: url('<?php echo $template_url.'/fonts/';?>Asap-Italic-webfont.eot');
				src: url('<?php echo $template_url.'/fonts/';?>Asap-Italic-webfont.eot?#iefix') format('embedded-opentype'),
					 url('<?php echo $template_url.'/fonts/';?>Asap-Italic-webfont.woff') format('woff'),
					 url('<?php echo $template_url.'/fonts/';?>Asap-Italic-webfont.ttf') format('truetype'),
					 url('<?php echo $template_url.'/fonts/';?>Asap-Italic-webfont.svg#AsapItalic') format('svg');
				font-weight: normal;
				font-style: normal;
			}
			<?php
		break;

		case 'Metrophobic':
			?>
			@font-face {
				font-family: 'Metrophobic';
				src: url('<?php echo $template_url.'/fonts/';?>Metrophobic-webfont.eot');
				src: url('<?php echo $template_url.'/fonts/';?>Metrophobic-webfont.eot?#iefix') format('embedded-opentype'),
					 url('<?php echo $template_url.'/fonts/';?>Metrophobic-webfont.woff') format('woff'),
					 url('<?php echo $template_url.'/fonts/';?>Metrophobic-webfont.ttf') format('truetype'),
					 url('<?php echo $template_url.'/fonts/';?>Metrophobic-webfont.svg#Metrophobic') format('svg');
				font-weight: normal;
				font-style: normal;
			}
			<?php
		break;

		case 'Molengo':
			?>
			@font-face {
				font-family: 'Molengo';
				src: url('<?php echo $template_url.'/fonts/';?>Molengo-Regular-webfont.eot');
				src: url('<?php echo $template_url.'/fonts/';?>Molengo-Regular-webfont.eot?#iefix') format('embedded-opentype'),
					 url('<?php echo $template_url.'/fonts/';?>Molengo-Regular-webfont.woff') format('woff'),
					 url('<?php echo $template_url.'/fonts/';?>Molengo-Regular-webfont.ttf') format('truetype'),
					 url('<?php echo $template_url.'/fonts/';?>Molengo-Regular-webfont.svg#Molengo') format('svg');
				font-weight: normal;
				font-style: normal;
			}
			<?php
		break;

		case 'DeliciousRoman':
			?>
			@font-face {
				font-family: 'DeliciousRoman';
				src: url('<?php echo $template_url.'/fonts/';?>delicious-roman-webfont.eot');
				src: url('<?php echo $template_url.'/fonts/';?>delicious-roman-webfont.eot?#iefix') format('embedded-opentype'),
					 url('<?php echo $template_url.'/fonts/';?>delicious-roman-webfont.woff') format('woff'),
					 url('<?php echo $template_url.'/fonts/';?>delicious-roman-webfont.ttf') format('truetype'),
					 url('<?php echo $template_url.'/fonts/';?>delicious-roman-webfont.svg#DeliciousRoman') format('svg');
				font-weight: normal;
				font-style: normal;
			}
			<?php
		break;

		
	} // END switch ( $font_face )
	?>
    
   	h1, h2, h3, h4, h5, h6, 
	.text_logo,
    .logo,
	.text_logo_with_tagline,
	#tagline,
	#welcome_text,
	#welcome_text_no_button,
	#welcome_text_first_no_button,
	#welcome_button,
	#content_scroller_title,
	#content_scroller_description,
    .featured_text,
	.slide_title,
	.intro,
	.text,
	.slide_description,
	.fp_slideshow_description,
	.caption_text,
	.caption_title,
	.text_logo,
	.text_logo_with_tagline .logo,
	.text_logo_with_tagline .tagline,
	#welcome_button,
	#header_menu ul > li a:link strong,
	#header_menu ul > li a:visited strong,
	#welcome_text_first,
	#welcome_text_second,
	#welcome_text_first_no_button,
	#welcome_text_second_no_button,
	#carousel_welcome_text,
	#portfolio_circles .item .content,
    #portfolio_4_circles .item .content,
    #portfolio_5_circles .item .content,
    .content_intro,
    .header_content,
    #comments .comment_author,
    #comments .comment_author a,
    #cancel-comment-reply-link,
    #author_info #author_description #author_name,
    .testimonials .contact_person {
        font-family: <?php echo $font_face; ?>, Helvetica, Arial, sans-serif;
    }
    <?php
} // END if ( get_option('font_active', 'font-face') == 'font-face' )
?>